@extends('admin.layouts.base')
@section('title','欢迎')
@section('pageHeader','欢迎')

@section('content')
    <div class="row">
        <div class="col-lg-12" style="text-align: center">

            {{--内容主体 开始--}}

            {{--<img src="/welcome.png" alt="欢迎来到安稳钱包-安稳号" style="width: 100%">--}}

            <!-- 修改密码弹窗 开始 -->
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">

                        <form class="form-horizontal" action="" method="post">

                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                    <span aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="myModalLabel">设置密码</h4>
                            </div>

                            {{--提示信息弹出框--}}
                            @include('admin.partials.errors')
                            @include('admin.partials.success')
                            {{--提示信息弹出框--}}

                            <div class="modal-body">
                                <p>欢迎来到安稳钱包！</p>
                                <p>首次登陆用户请重设您自己的密码！</p>
                                <p>密码规则: 支持数字、英文大小写,不能是纯数字或字母</p>


                                <input type="hidden" name="_token" value="{{ csrf_token() }}">

                                <div class="form-group">
                                    <label for="password" class="col-sm-3 control-label">新密码</label>
                                    <div class="col-sm-5">
                                        <input type="password" name="password" class="form-control"
                                               id="password">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="password_confirmation"
                                           class="col-sm-3 control-label">确认密码</label>
                                    <div class="col-sm-5">
                                        <input type="password" name="password_confirmation" class="form-control"
                                               id="password_confirmation">
                                    </div>
                                </div>

                            </div>

                            <div class="modal-footer">
                                <button type="submit" class="btn btn-primary">确定</button>
                            </div>

                        </form>

                    </div>
                </div>
            </div>
            <!-- 修改密码弹窗 结束 -->

            {{--内容主体 结束--}}

        </div>
    </div>

    <input type="hidden" id="pw_reset" value="{{ $pw_reset }}">
@endsection

@section('js')
    <script>
        // 触发改密弹窗
        var pw_reset = $('#pw_reset').val();
        if (pw_reset != 1) {
            $('#myModal').modal();
        }
    </script>
@endsection
